package com.sky.dto;

import com.sky.entity.DishFlavor;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;

@Data
@ApiModel(description = "新增修改菜品时传递的数据模型")
public class DishDTO implements Serializable {

	@ApiModelProperty("主键id")
	private Long id;

	@ApiModelProperty("菜品名称")
	private String name;

	@ApiModelProperty("菜品所属分类id")
	private Long categoryId;

	@ApiModelProperty("菜品价格")
	private BigDecimal price;

	@ApiModelProperty("图片链接地址")
	private String image;

	@ApiModelProperty("描述信息")
	private String description;

	@ApiModelProperty("状态，0停售，1起售")
	private Integer status;

	@ApiModelProperty("菜品口味，是口味的list集合")
	private List<DishFlavor> flavors = new ArrayList<>();

}
